<div class="fadeIn">
	<br />
	<ol class="breadcrumb" style="margin-bottom: 0px;">
		<li class="active"><span class="glyphicon glyphicon-home" style="color:#23527c"></span>&nbsp;
			<mainpage></mainpage>
		</li>
		<li class="active">运维工作台 / 参数配置管理 / 接口参数管理 / 短信类型管理</li>
	</ol>
	<div class="rightbar">
		<div id="serviceEnd" class="showEle sign1">
			<form action="serviceCodeDef/out-excel" method="post" id="form">
				<div class="left marR10 marT15">
					<span class="search-name">短信类型编码</span>
					<input type="text" class="form-control1" ng-keyup='search($event)' ng-model='searchData.serviceCode' placeholder="请输入编码"
					    name="serviceCode">
				</div>
				<div class="left marR10 marT15">
					<span class="search-name">短信类型名称</span>
					<input type="text" class="form-control1" ng-keyup='search($event)' ng-model="searchData.serviceName" placeholder="请输入名称"
					    name="serviceName">
				</div>
			</form>
			<a href="javascript:;" ng-click='search()' class=" btn btn-sm btn-primary left marT15"><span class="glyphicon glyphicon-search"></span></a>
			<div class="right marT15" style="position:relative">
				<button class="btn btn-sm btn-primary" ng-click='outExcel()'><img style="width:25px; height:20px;" src="img/excel.png">导出表格<span
					    ng-style='loadStyle' class="outExcelLoad"><img src="img/load.gif"></span>
				</button>
			</div>
		</div>

		<div class="table-box">

			<table class="table table-bordered table-striped text-center bg-info marT15">
				<thead>
					<tr class="info">
						<th class="text-center">序号</th>
						<th class="text-center">短信类型编码</th>
						<th class="text-center">短信类型名称</th>
						<th class="text-center">状态</th>
						<th class="text-center">短信类型说明</th>
						<th class="text-center">操作</th>
					</tr>
				</thead>
				<tbody id="appList">
					<tr ng-repeat='item in result'>
						<td>{{$index+1}}</td>
						<td class="w115">{{item.serviceCode}}</td>
						<td class="w115">{{item.serviceName}}</td>
						<td>{{item.statusStr}}</td>
						<td style="min-width: 200px; word-break: break-all;">{{item.desc}}</td>
						<td style="min-width: 160px">
							<a class="marR10" ng-click='changeStstus($index,item.serviceCode,item.status)' ng-show="'0'===item.status">生效</a>
							<a class="marR10" ng-click='changeStstus($index,item.serviceCode,item.status)' ng-show="'1'===item.status">失效</a>

							<a class="marR10" data-toggle="modal" data-target="#add1" ng-click="editTr('修改',item.serviceCode)">修改</a>
							<a class="" data-toggle="modal" data-target="#delete" ng-click="delete(item.serviceCode)">删除</a>
						</td>
					</tr>

				</tbody>
				<tfoot>
					<tr>
						<td>
							<a class="glyphicon glyphicon-plus" data-toggle="modal" data-target="#add1" ng-click='editTr("添加")'></a>
						</td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
					</tr>
				</tfoot>

			</table>
		</div>


		<page></page>
	</div>
</div>
</div>

</div>
<!--右侧内容结束-->
</div>

<!--添加程序弹窗-->
<div class="modal fade" id="add1" tabindex="-1" role="dialog" aria-labelledby="add11">
	<div class="modal-dialog" role="document">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
				<h4 class="modal-title" id="add11">{{popup}}短信类型</h4>
			</div>
			<div class="modal-body">
				<div class="row marB15">
					<div class="col-xs-6">
						<div class="input-group left">
							<span class="input-group-addon">短信类型编码：</span>
							<input type="text" class="form-control" onkeyup="value=value.replace(/[^\w\.\/]/ig,'')" ng-model='addData.serviceCode'
							    / ng-disabled='isDisabled'>
						</div>
					</div>
					<div class="col-xs-6">
						<div class="input-group  left">
							<span class="input-group-addon">短信类型名称：</span>
							<input type="text" class="form-control" ng-model='addData.serviceName' ng-keyup='stripscript()' onKeypress="javascript:if(event.keyCode == 32)event.returnValue = false;" />
						</div>
					</div>
				</div>
				<div class="row marB15">
					<div class="col-xs-6">
						<div class="input-group  left">
							<span class="input-group-addon">状态</span>
							<select class="form-control" ng-model='addData.status'>
								<option value='1'>生效</option>
								<option value='0'>待生效</option>
							</select>
						</div>
					</div>
				</div>
				<div class="marT15 clearfix row">
					<div class="col-xs-12">
						<div class="input-group  left">
							<span class="input-group-addon">短信类型是否接受上行短信</span>
							<div class="form-control" >
								<label class="radio-inline">
									<input type="radio" name="acceptMo" value="0" ng-model="addData.acceptMo"> 是
								</label>
								<label class="radio-inline">
									<input type="radio" name="acceptMo" value='1' ng-model="addData.acceptMo"> 否
								</label>
							</div>
						</div>
					</div>
				</div>
				<div class="marT15 clearfix row">
					<div class="col-xs-12">
						<label class="left"><span>业务端说明 ：</span></label>
						<textarea class="left form-control" ng-model='addData.desc' id="desc"></textarea>
					</div>
				</div>
				<br>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default btn-sm" data-dismiss="modal">取消</button>
				<button type="button" class="btn btn-primary btn-sm" ng-click='editSave()'>保存</button>
			</div>
		</div>
	</div>
</div>
<!-- 添加程序结束 -->

<!-- 参数添加结束 -->
<!-- 提示框 -->
<div class="modal fade" id="delete">
	<div class="modal-dialog">
		<div class="modal-content message_align">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
				<h4 class="modal-title">提示信息</h4>
			</div>
			<div class="modal-body">
				<p>您确认删除吗？</p>
			</div>
			<div class="modal-footer">
				<input type="hidden" id="url" />
				<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
				<a class="btn btn-primary" data-dismiss="modal" ng-click='deleteTr()'>确定</a>
			</div>
		</div>
		<!-- /.modal-content -->
	</div>
	<!-- /.modal-dialog -->
</div>
<!-- /.modal -->
<!-- 加载框 -->
<span class='loaded' ng-show='loaded'><img src="img/load.gif"></span>
<!-- 加载框 完成-->